#include <GL/gl.h>
#include <GL/glu.h>
#include "initgl.h"
 
int main(int argc, char *argv[])
{
  init(800, 600, SDL_OPENGL);

  bool continuer = true;
  SDL_Event event;
 
  while (continuer)
    {
      SDL_WaitEvent(&event);
      switch(event.type)
        {
	case SDL_QUIT:
	  continuer = false;
        }
 
      glClear(GL_COLOR_BUFFER_BIT);
 
      glBegin(GL_QUADS);
      glColor3ub(0,0,255);
      glVertex2d(-0.75,-0.75);
      glVertex2d(-0.75,0.75);
      glColor3ub(255,0,0);
      glVertex2d(0.75,0.75);
      glVertex2d(0.75,-0.75);
      glEnd();
 
      glFlush();
      SDL_GL_SwapBuffers();
    }
 
  quit();
 
  return 0;
}
